import request from '@/utils/request'

// 查询积分详情列表
export function listPointsAccessDetail(query) {
  return request({
    url: '/points/pointsAccessDetail/list',
    method: 'get',
    params: query
  })
}

// 查询积分详情详细
export function getPointsAccessDetail(id) {
  return request({
    url: '/points/pointsAccessDetail/' + id,
    method: 'get'
  })
}

// 新增积分详情
export function addPointsAccessDetail(data) {
  return request({
    url: '/points/pointsAccessDetail',
    method: 'post',
    data: data
  })
}

// 修改积分详情
export function updatePointsAccessDetail(data) {
  return request({
    url: '/points/pointsAccessDetail',
    method: 'put',
    data: data
  })
}

// 删除积分详情
export function delPointsAccessDetail(id) {
  return request({
    url: '/points/pointsAccessDetail/' + id,
    method: 'delete'
  })
}
